package org.anderground.internal.graphics.factories;

import org.anderground.core.graphics.Rect;
import org.anderground.core.graphics.factories.RectFactory;
import org.anderground.internal.graphics.abstaractions.AbstractRect;
import org.anderground.internal.graphics.impl.AwtRect;

public class RectFactoryImpl extends RectFactory {

	@Override
	public AbstractRect create() {
		return new AwtRect();
	}

	@Override
	public AbstractRect create(Rect rect) {
		return new AwtRect((AwtRect) rect.getDelegate());
	}

	@Override
	public AbstractRect create(int left, int top, int right, int bottom) {
		return new AwtRect(left, right, bottom, top);
	}

}
